import request from '@/utils/request'

export function addUnit(data) {
    return request({
        url: '/unit/addUnit',
        method: 'post',
        data
    })
}

export function getUnitList(data) {
    return request({
        url: '/unit/getUnitList',
        method: 'get',
        params: data,
    })
}

export function deleteUnitByUnitID(data) {
    return request({
        url: '/unit/deleteUnitByUnitID',
        method: 'post',
        data
    })
}
